class Solution {

    public static void main(String[] args) {

        String[][] a = board();
        printBorad(a);

    }

    public static String[][] board(){
        String[][] qiPan = new String[17][17];
        for(int i=0;i<qiPan.length;i++){
            for (int j=0;j<qiPan[0].length;j++){
                qiPan[i][j]="*";
            }
            System.out.println();
        }
        return qiPan;
    }

    public static void printBorad(String[][] a){
        String[][] board = a;
        for(int i=0;i<board.length;i++){
            if (i==0){
                board[i][0]=" ";
            }else if(i>=1&&i<=10) {
                board[i][0] = ("" + (i-1));
            }else {
                board[i][0]=(char)(i+86)+"";
            }
        }
        for (int i=0;i<board[0].length;i++){
            if (i==0){
                board[0][i]=" ";
            }else if (i>=1&&i<=10){
                board[0][i] = ("" + (i-1));
            }else {
                board[0][i] = (char)(i+86)+"";
            }
        }

        for (int i=0;i<board.length;i++){
            for (int j=0;j<board[i].length;j++){
                System.out.print(board[i][j]);
            }
            System.out.println();
        }


    }




}
